# 个人名片管理系统
import pythonCode.function_ID
import time

# name = ""
# company = ""
# professor = ""
# age = 0
# tel_num = ""

while 1:
    print("*" * 50)
    print("欢迎使用【名片管理系统】V1.0")
    print("")
    print("1. 新建名片\n2. 显示全部\n3. 查询名片")
    print("")
    print("0. 退出系统")
    print("*" * 50)
    index = input("请输入序号：")
    if index == "0":
        print("正在退出系统……")
        time.sleep(2)
        break
    elif index == "1":
        pythonCode.function_ID.create_id()
    elif index == "2":
        pythonCode.function_ID.show_all()
    elif index == "3":
        pythonCode.function_ID.query_name()
    else:
        print("输入错误，请重新输入！")
        time.sleep(1)
